package homework.ch11_13.p4;

public class AtomicComponent extends Component{
    public AtomicComponent() {
    }

    public AtomicComponent(int id, String name, double preice) {
        super(id, name, preice);
    }

    public void add(Component component)throws UnsupportedOperationException{};

    public void remove(Component component)throws UnsupportedOperationException{};

    public double calcPrice(){
        return this.price;
    }

    public Iterator iterator(){
        Nulllterator s=new Nulllterator();
        return s;
    }

    public String toString(){
        return super.toString();
    }
}
